package jdk.entity;


import java.time.LocalDate;

/**
 * User
 * @author songyafei
 */
public class UserEntity {

    private Long userId;
    private Integer age;
    private String  name;
    private LocalDate createdDate;
    private Double salary = Double.valueOf(100);

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public LocalDate getCreatedDate() {
        return createdDate;
    }

    public void setCreatedDate(LocalDate createdDate) {
        this.createdDate = createdDate;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public UserEntity(Long userId, Integer age, String name, LocalDate createdDate,Double salary) {
        this.userId = userId;
        this.age = age;
        this.name = name;
        this.createdDate = createdDate;
        this.salary = salary;
    }

    public UserEntity(Long userId, Integer age, String name, LocalDate createdDate) {
        this.userId = userId;
        this.age = age;
        this.name = name;
        this.createdDate = createdDate;
    }

    public Double getSalary() {
        return salary;
    }

    public void setSalary(Double salary) {
        this.salary = salary;
    }

    public UserEntity(){}

    @Override
    public String toString() {
        return "UserEntity{" +
                "userId=" + userId +
                ", age=" + age +
                ", name='" + name + '\'' +
                ", createdDate=" + createdDate +
                ", salary=" + salary +
                '}';
    }
}
